/**
 * Copyright © 2018 陈锦韬  All rights reserved.
 * 
 * @Package: com.rx.controller 
 * @author: Administrator   
 * @date: 2018年3月18日 下午9:57:20
 */
package com.rx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.rx.core.base.BaseController;
import com.rx.dto.NetApiVo;
import com.rx.dto.UploadTableFieldVo;
import com.rx.dto.VerVo;
import com.rx.service.SysCtrlService;

/**
 * @className: SysCtrlCotroller 
 * @author: Administrator
 * @Description: TODO
 * @date: 2018年3月18日 下午9:57:20
 */
@RestController
@RequestMapping(value="ctrl")
public class SysCtrlCotroller extends BaseController {
	@Autowired
	SysCtrlService sysCtrlService;
	@RequestMapping(value="upload-table-field",method=RequestMethod.POST)
	public String uploadTableField(@RequestBody UploadTableFieldVo uploadTableFieldVo) throws Exception{
		return sysCtrlService.uploadTableField(uploadTableFieldVo);
	}
	
	@RequestMapping(value="request-ver",method=RequestMethod.POST)
	public String requestVer(@RequestBody VerVo vo) throws Exception{
		return sysCtrlService.requestVer(vo);
	}	
	
	@RequestMapping(value="get-net-api",method=RequestMethod.POST)
	public String getNetApi(@RequestBody NetApiVo vo) throws Exception{
		return sysCtrlService.getNetApi(vo);
	}	
}
